//static
#include <iostream>
using namespace std;
size_t count_calls()
{
	static size_t ctr=0;//value will perists across calls
	return ++ctr;
}
int main()
{
	for(size_t i=0;i!=10;++i)
		cout << count_calls() << endl;
	return 0;
}